﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System.Xml;

namespace Fulcrum.ControlGenerator
{
    /// <summary>
    /// Configuration data about a given dependency property
    /// </summary>
    public class AttachedDependencyPropertyXmlConfiguration : BaseDependencyPropertyXmlConfiguration, Fulcrum.ControlGenerator.IAttachedDependencyPropertyConfiguration
    {
        public AttachedDependencyPropertyXmlConfiguration(XmlReader xmlReader)
            : base(xmlReader)
        {
            // TODO Get summary shouldn't be empty string
            // TODO set summary shouldn't be empty string
            this.GetMethodSummary = xmlReader.GetAttribute("getSummary");
            this.SetMethodSummary = xmlReader.GetAttribute("setSummary");

            xmlReader.Read();
        }

        public string GetMethodSummary
        {
            get;
            private set;
        }

        public string SetMethodSummary
        {
            get;
            private set;
        }
    }
}
